home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / DocShell / ODXDef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  4.3 KB  |  136 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ODXDef.h
  3.  
  4.     Contains:    OpenDoc™ extension application constant definitions
  5.  
  6.     Owned by: Tantek Çelik
  7.  
  8.     Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     3/14/96    NP        1258295: Put up alert when user
  13.                                     double-clicks app.
  14.         <13>    10/26/95    TÇ        1296574 GM:Cannot set default memory
  15.                                     partition size.
  16.         <12>      9/8/95    eeh        1268998: prefs file name res id defined
  17.         <11>     8/12/95    TÇ        1276809 Optimization: lower stack size to
  18.                                     64K and default heap size to 384K
  19.         <10>     5/25/95    jpa        Removed CODE 7 -- CFM68K b1 doesn't
  20.                                     generate one. [1241078]
  21.          <9>     5/19/95    TÇ        1249396 (was BB) OpenDoc shell should
  22.                                     serialize stationery creation., 1235942
  23.                                     Launching the OpenDoc pref file causes a
  24.                                     1000 exception to be thrown
  25.          <8>      1/6/95    jpa        Added defs for new docstub rsrcs [1196515]
  26.          <7>    10/10/94    TÇ        #1191470 Need both 68K and PPC document
  27.                                     stub application
  28.          <6>     10/7/94    TÇ        #1191470 Need both 68K and PPC document
  29.                                     stub application
  30.          <5>     8/19/94    TÇ        #1159233 Remove references to j3di
  31.          <4>     7/25/94    TÇ        added ErrAlert constants for OpenDoc
  32.                                     launcher error alert IDs
  33.          <3>     7/14/94    TÇ        added constants for document resources
  34.          <2>     7/13/94    TÇ        removed some XMP stuff
  35.          <1>     6/27/94    TÇ        first checked in
  36.          <0>     6/16/94    SV        SOMverted
  37.          <1>     4/18/94    TÇ        first checked in
  38.     
  39.     In Progress:
  40.         
  41. */
  42.  
  43. #ifndef _ODXDEF_
  44. #define _ODXDEF_
  45.  
  46. //==============================================================================
  47. // Constants
  48. //==============================================================================
  49.  
  50. // ALRTs
  51. #define kODXErrAlert             128
  52. #define    kODXAnonErrAlert        129
  53. #define    kODXDoubleClickAlert    2002
  54.  
  55. // Prefs file name resource ID
  56. #define kSHLPrefsFileNameResID        2000
  57. #define kSHLPrefsFolderNameResID    2001
  58.  
  59. #define kPrefFileType        'pref'
  60. // for stationery creation
  61. #define    kEditorFileType        'shlb'
  62. #define    kDocSeedResType        'seed'
  63. #define    kDocSeedResID        1
  64.  
  65. // Document Stub Data                    Document Stub App
  66. // kDocStubRsrcType kDocStubRsrcID0        kcfrgRsrcType    kcfrgID
  67. // kDocStubRsrcType kDocStubRsrcID1        kMainCFMType    kMainCFMPPCID
  68. // kDocStubRsrcType kDocStubRsrcID2        kscszRsrcType    kscszID
  69. // kDocStubRsrcType kDocStubRsrcID3        kMainCFMType     kMainCFM68KID
  70. // kDocStubRsrcType kDocStubRsrcID4        kMainCFMType     kMainCFM68KID1
  71. // kDocStubRsrcType kDocStubRsrcID5        kCODERsrcType    kCODEID0
  72. // kDocStubRsrcType kDocStubRsrcID6        kCODERsrcType     kCODEID1
  73. // kDocStubRsrcType kDocStubRsrcID7        kCODERsrcType    kCODEID6
  74. // kDocStubRsrcType kDocStubRsrcID8        kCODERsrcType     kCODEID7
  75. // kDocStubRsrcType kDocStubRsrcID9        kMainCFMType     kSOMMemCFM68KID
  76. // kDocStubRsrcType kDocStubRsrcID10    kMainCFMType     kSOMMemCFMPPCID
  77. // kSIZERsrcType     kDocStubSIZEID        kSIZERsrcType    kSIZEID
  78. //
  79.  
  80. // for document stub data (e.g. types & ids of the doc stub app resources when stored
  81. // in OpenDoc™ & OpenDoc Shell)
  82. #define    kSIZERsrcType        'SIZE'
  83. #define kDocStubSIZEID        3
  84.  
  85. #define kDocStubRsrcType    'DSDT'    // for Document Stub DaTa, i.e. how these resources
  86.                                     // are actually stored in OpenDoc™ & OpenDoc Shell
  87.                                     // except for the SIZE resource which we keep as
  88.                                     // a SIZE resource for the convenience of editing it
  89.                                     // in Resedit.
  90.                                     
  91. #define kDocStubRsrcID0        0
  92. #define kDocStubRsrcID1        1
  93. #define kDocStubRsrcID2        2
  94. #define kDocStubRsrcID3        3
  95. #define    kDocStubRsrcID4        4
  96. #define    kDocStubRsrcID5        5
  97. #define    kDocStubRsrcID6        6
  98. #define    kDocStubRsrcID7        7
  99. #define    kDocStubRsrcID8        8
  100. #define    kDocStubRsrcID9        9
  101. //#define    kDocStubRsrcID10    10
  102.  
  103. // for document stub construction
  104. #define    kMainCFMType        'rseg'  // used to be 'DSTB' for Document STuB
  105.                                     // but CFM68K uses 'rseg'.
  106. #define    kMainCFM68KID        0
  107. #define    kMainCFM68KID1        1
  108. #define    kMainCFMPPCID        2
  109. #define kSOMMemCFM68KID        3
  110. #define kSOMMemCFMPPCID        4
  111.  
  112. #define kcfrgRsrcType        'cfrg'
  113. #define kcfrgID                0
  114. #define    kscszRsrcType        'scsz'
  115. #define kscszID                0
  116.  
  117. #define kDocStubStackSize    (64 * 1024)        // 64K stack size
  118. #define    kDocStubMinHeapSize    (256 * 1024)    // 256K min app heap
  119. #define    kDocStubDefaultSize    (384 * 1024)    // 384K default app heap
  120.  
  121. #define kCODERsrcType        'CODE'
  122. #define kCODEID0            0
  123. #define kCODEID1            1
  124. #define kCODEID6            6
  125. //#define kCODEID7            7
  126.  
  127. #define    kSIZEID                -1
  128.  
  129. // Strings for the Launcher
  130. #define    kODXLibsFldrStrID        333
  131. #define kODXLibsFldrStrIndex    1
  132.  
  133. #define kLaunchFailedErrStrings    301
  134.  
  135. #endif // _ODXDEF_
  136.